package com.software.practicecenter.repository;

import com.software.practicecenter.entity.PracticeRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Author xiaoliao
 * @Date 2023/5/31 14:39
 */
@Transactional
public interface PracticeRecordRepository extends JpaRepository<PracticeRecord, String> {
    List<PracticeRecord> findByUserId(String userId);
    List<PracticeRecord> findPracticeRecordsByBelongChapter(String belongChapter);
}
